/**  
* @Title: CompanyServiceImpl.java
* @Package com.house.service.impl.company
* @version V1.0  
*/ 
package com.hjb.service.impl.company;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hjb.service.company.CompanyService;
import com.hjb.service.domain.Company;
import com.hjb.service.mapper.CompanyMapper;

/**
* @ClassName: CompanyServiceImpl
* @Description: TODO(公司信息)
* @author <a href="mailto:125671254@qq.com">Pan Xinwen</a>
* @date 2017年5月13日 下午5:25:21
*/
@Service
public class CompanyServiceImpl implements CompanyService {

	@Autowired
	private CompanyMapper companyMapper;
	
	/* (non-Javadoc)
	 * @see com.house.service.company.CompanyService#getCompanyMsg()
	 */
	@Override
	public Company getCompanyMsg() {
		// TODO Auto-generated method stub
		List<Company> list = companyMapper.selectAll();
		
		return list.size()==0?new Company():list.get(0);
	}

}
